<template>
  <div>
    <!-- <so-header :seller="headerTitle"></so-header> -->
    <setHeader :title="headerTitle"></setHeader>
    <div class="content" style="margin-bottom: 0;">
			<div class="main-create-success">
				<img src="../common/images/succ.png">
				<h3>加入申请成功</h3>
        <p class="line-notice">请等待管理员</p>
        <p class="line-notice">{{nameAndTel}}</p>
        <p class="line-notice">验证通过</p>
        <div class="btn_big_red primary_add" @click="backUp">
            <button>返回</button>
        </div>
			</div>
      
        <!-- <img src="../common/images/succ.png">
        <h3>加入申请成功</h3>
        <p class="line-notice">请等待管理员</p>
        <p class="line-notice">{{nameAndTel}}</p>
        <p class="line-notice">验证通过</p>
      
        <mt-button type="primary" size="normal" class="el-long-button el-ok-button"  @click.native="backUp">返回</mt-button> -->
    </div>
  </div>

</template>

<script>
import setHeader from '../public/setHeader.vue';
  import { MessageBox } from 'mint-ui';
  export default {
 
    data() {
      return {
      	headerTitle:'创建企业',
        companyName: '',
        userName: '',
        userJob: '',
        applyInfo: '',
        nameAndTel: '',
        cp_id: ''
      };

    },
    components:{
    	setHeader,
    },
    mounted() {
      this.companyName = this.$route.query.companyName
      this.nameAndTel = this.$route.query.adminName +' '+ this.$route.query.tel
      this.cp_id = this.$route.query.cp_id
      // console.log(this.$route.query.companyName);
    },

    methods: {
      /**
       * 去查看企业
       */
      backUp(){
          if(this.$system != 'ios'){
              this.$router.push({path: '/userCenter/companyIndex', query: {cp_id:this.cp_id,companyName:this.companyName}}); 
          }else{
              window.location.href = '/userCenter/companyIndex?cp_id=' + this.cp_id + '&companyName' + this.companyName;
          }       
      }, 
    }
  }

</script>
<style >
/* .el-ok-button{
	margin-top:30px;
}
.line-notice{
	margin-top:20px;
} */

/* 加入申请成功 */
.main-create-success {
	margin-top: 2rem;
	text-align: center;
}
.main-create-success img {
	width: 2rem;
}
.main-create-success h3 {
	font-size: 0.36rem;
	color: #e50838;
}
.main-create-success p {
	font-size: 0.34rem;
  color: #666;
  
}


</style>
